using System.ComponentModel.DataAnnotations;
using Shared.Models;

namespace ProductService.Models;

public class Product : BaseEntity
{
    [Required]
    [StringLength(200)]
    public string Name { get; set; } = string.Empty;
    
    [StringLength(1000)]
    public string? Description { get; set; }
    
    [Required]
    public decimal Price { get; set; }
    
    [Required]
    public int StockQuantity { get; set; }
    
    [StringLength(100)]
    public string? Category { get; set; }
    
    [StringLength(500)]
    public string? ImageUrl { get; set; }
    
    [StringLength(50)]
    public string? SKU { get; set; }
    
    public bool IsActive { get; set; } = true;
    
    public decimal? DiscountPrice { get; set; }
    
    [StringLength(20)]
    public string? Brand { get; set; }
    
    public decimal? Weight { get; set; }
    
    [StringLength(50)]
    public string? WeightUnit { get; set; } = "kg";
} 